///
/// $Id: cmain.cpp,v 1.4 2005/10/20 05:06:35 olegus Exp $
///

#include "cmain.h"
#include "storage.h"

void AssertFailed( const char* sText, ... )
{
    char buf[2048];
    va_list tArgs;
    va_start( tArgs, sText );
    vsprintf( buf, sText, tArgs );
    va_end( tArgs );
    g_cLogStdOut.Out( buf );
    g_cLogStdOut.Flush();
    exit(1);
}

bool valid( EQUFLT d )
{
    return (!_isnan( d )) && _finite(d);
}

///
/// $Id: cmain.cpp,v 1.4 2005/10/20 05:06:35 olegus Exp $
///

